﻿using Entity;
using System.ComponentModel;
using DAO;

namespace BUS
{
    class QuanLyNhomBUS
    {
        public BindingList<QuanLyNhom> LoadAll()
        {
            QuanLyNhomDAO d = new QuanLyNhomDAO();
            return d.LoadAll();
        }
        public int DeleteByMaNguoiDung(int manguoidung)
        {
            QuanLyNhomDAO d = new QuanLyNhomDAO();
            return d.DeleteByMaNguoiDung(manguoidung);
        }
        public int DeleteByMaNhomTin(int manhomtin)
        {
            QuanLyNhomDAO d = new QuanLyNhomDAO();
            return d.DeleteByMaNhomTin(manhomtin);
        }
        public int DeleteByStringId(int manguoidung, int manhomtin)
        {
            QuanLyNhomDAO d = new QuanLyNhomDAO();
            return d.DeleteByStringId(manguoidung, manhomtin);
        }
        public int Insert(QuanLyNhom kv)
        {
            QuanLyNhomDAO d = new QuanLyNhomDAO();
            return d.Insert(kv);
        }
    }
}
